var  CityArray = [
		["CategoryName","CityList"],
		["北京",[["北京","101010100"]]],
		["天津",[["天津","101030100"]]],
		["河北",[
					["石家庄","101090101"],
					["保定","101090201"],
					["张家口","101090301"],
					["承德市","101090401"],
					["唐山","101090501"],
					["廊坊","101090601"],
					["沧州","101090701"],
					["衡水","101090801"],
					["邢台","101090901"],
					["邯郸","101091001"],
					["秦皇岛","101091101"]
				]
		],
		["山西",[
					["太原","101100101"],
					["大同","101100201"],
					["阳泉","101100301"],
					["晋中","101100401"],
					["长治","101100501"],
					["晋城","101100601"],
					["临汾","101100701"],
					["运城","101100801"],
					["朔州","101100901"],
					["忻州","101101001"]
					]
		],
		["内蒙古",[
						["呼和浩特","101080101"],
						["包头","101080201"],
						["乌海","101080301"],
						["集宁","101080401"],
						["通辽","101080501"],
						["赤峰","101080601"],
						["鄂尔多斯","101080701"],
						["临河","101080801"],
						["锡林浩特","101080901"],
						["乌兰浩特","101081101"],
						["阿拉善左旗","101081201"]
					]
		],
		
		
		["辽宁",[
					["沈阳","101070101"],
					["大连","101070201"],
					["鞍山","101070301"],
					["抚顺","101070401"],
					["本溪","101070501"],
					["丹东","101070601"],
					["锦州","101070701"],
					["营口","101070801"],
					["阜新","101070901"],
					["辽阳","101071001"],
					["铁岭","101071101"],
					["朝阳","101071201"],
					["盘锦","101071301"],
					["葫芦岛","101071401"]
				]
		],
		
		["吉林",[
					["长春","101060101"],
					["吉林","101060201"],
					["延吉","101060301"],
					["四平","101060401"],
					["通化","101060501"],
					["白城","101060601"],
					["辽源","101060701"],
					["松原","101060801"],
					["白山","101060901"]
				]
		],
		
		["黑龙江",[
						["哈尔滨","101050101"],
						["齐齐哈尔","101050201"],
						["牡丹江","101050301"],
						["佳木斯","101050401"],
						["绥化","101050501"],
						["黑河","101050601"],
						["大兴安岭","101050701"],
						["伊春","101050801"],
						["大庆","101050901"],
						["七台河","101051002"],
						["鸡西","101051101"],
						["鹤岗","101051201"],
						["双鸭山","101051301"]
				]
		],
		
		["上海",[["上海","101020100"]]],
		
		["山东",[
					["济南","101120101"],
					["青岛","101120201"],
					["淄博","101120301"],
					["德州","101120401"],
					["烟台","101120501"],
					["潍坊","101120601"],
					["济宁","101120701"],
					["泰安","101120801"],
					["临沂","101120901"],
					["菏泽","101121001"],
					["滨州","101121101"],
					["东营","101121201"],
					["威海","101121301"],
					["枣庄","101121401"],
					["日照","101121501"],
					["莱芜","101121601"],
					["聊城","101121701"]
				]
		],
		
		["安徽",[
					["合肥","101220101"],
					["蚌埠","101220201"],
					["芜湖","101220301"],
					["淮南","101220401"],
					["马鞍山","101220501"],
					["安庆","101220601"],
					["宿州","101220701"],
					["阜阳","101220801"],
					["亳州","101220901"],
					["黄山","101221001"],
					["滁州","101221101"],
					["淮北","101221201"],
					["铜陵","101221301"],
					["宣城","101221401"],
					["六安","101221501"],
					["巢湖","101221601"],
					["池州","101221701"]
				]
		],
		
		["江苏",[
					["南京","101190101"],
					["无锡","101190201"],
					["镇江","101190301"],
					["苏州","101190401"],
					["南通","101190501"],
					["扬州","101190601"],
					["盐城","101190701"],
					["徐州","101190801"],
					["淮安","101190901"],
					["连云港","101191001"],
					["常州","101191101"],
					["泰州","101191201"],
					["宿迁","101191301"]
				]
		],
		
		["浙江",[
					["杭州","101210101"],
					["湖州","101210201"],
					["嘉兴","101210301"],
					["宁波","101210401"],
					["绍兴","101210501"],
					["台州","101210601"],
					["温州","101210701"],
					["丽水","101210801"],
					["金华","101210901"],
					["衢州","101211001"],
					["舟山","101211101"]
				]
		],
		
		["江西",[
					["南昌","101240101"],
					["九江","101240201"],
					["上饶","101240301"],
					["抚州","101240401"],
					["宜春","101240501"],
					["吉安","101240601"],
					["赣州","101240701"],
					["景德镇","101240801"],
					["萍乡","101240901"],
					["新余","101241001"],
					["鹰潭","101241101"]
				]
		],
		
		["福建",[
					["福州","101230101"],
					["厦门","101230201"],
					["宁德","101230301"],
					["莆田","101230401"],
					["泉州","101230501"],
					["漳州","101230601"],
					["龙岩","101230701"],
					["三明","101230801"],
					["南平","101230901"]
				]
		],
		
		["河南",[
					["郑州","101180101"],
					["安阳","101180201"],
					["新乡","101180301"],
					["许昌","101180401"],
					["平顶山","101180501"],
					["信阳","101180601"],
					["南阳","101180701"],
					["开封","101180801"],
					["洛阳","101180901"],
					["商丘","101181001"],
					["焦作","101181101"],
					["鹤壁","101181201"],
					["濮阳","101181301"],
					["周口","101181401"],
					["漯河","101181501"],
					["驻马店","101181601"],
					["三门峡","101181701"],
					["济源","101181801"]
				]
		],
		
		["湖北",[
					["武汉","101200101"],
					["襄樊","101200201"],
					["鄂州","101200301"],
					["孝感","101200401"],
					["黄冈","101200501"],
					["黄石","101200601"],
					["咸宁","101200701"],
					["荆州","101200801"],
					["宜昌","101200901"],
					["恩施","101201001"],
					["十堰","101201101"],
					["神农架","101201201"],
					["随州","101201301"],
					["荆门","101201401"],
					["天门","101201501"],
					["仙桃","101201601"],
					["潜江","101201701"]
				]
		],
		
		["湖南",[
					["长沙","101250101"],
					["湘潭","101250201"],
					["株洲","101250301"],
					["衡阳","101250401"],
					["郴州","101250501"],
					["常德","101250601"],
					["益阳","101250701"],
					["娄底","101250801"],
					["邵阳","101250901"],
					["岳阳","101251001"],
					["张家界","101251101"],
					["怀化","101251201"],
					["黔阳","101251301"],
					["永州","101251401"],
					["吉首","101251501"]
				]
		],
		["广东",[
					["广州","101280101"],
					["韶关","101280201"],
					["惠州","101280301"],
					["梅州","101280401"],
					["汕头","101280501"],
					["深圳","101280601"],
					["珠海","101280701"],
					["佛山","101280800"],
					["肇庆","101280901"],
					["湛江","101281001"],
					["江门","101281101"],
					["河源","101281201"],
					["清远","101281301"],
					["云浮","101281401"],
					["潮州","101281501"],
					["东莞","101281601"],
					["中山","101281701"],
					["阳江","101281801"],
					["揭阳","101281901"],
					["茂名","101282001"],
					["汕尾","101282101"],
					["东沙岛","101282105"]
				]
		],
		
		["广西",[
					["南宁","101300101"],
					["崇左","101300201"],
					["柳州","101300301"],
					["来宾","101300401"],
					["桂林","101300501"],
					["梧州","101300601"],
					["贺州","101300701"],
					["贵港","101300801"],
					["玉林","101300901"],
					["百色","101301001"],
					["钦州","101301101"],
					["河池","101301201"],
					["北海","101301301"],
					["防城港","101301401"]
				]
		],
		
		["海南",[
					["海口","101310101"],
					["琼山","101310102"],
					["三亚","101310201"],
					["东方","101310202"],
					["临高","101310203"],
					["澄迈","101310204"],
					["儋州","101310205"],
					["昌江","101310206"],
					["白沙","101310207"],
					["琼中","101310208"],
					["定安","101310209"],
					["屯昌","101310210"],
					["琼海","101310211"],
					["文昌","101310212"],
					["清兰","101310213"],
					["保亭","101310214"],
					["万宁","101310215"],
					["陵水","101310216"],
					["西沙","101310217"],
					["珊瑚岛","101310218"],
					["永署礁","101310219"],
					["南沙岛","101310220"],
					["乐东","101310221"],
					["通什","101310222"]
				]
		],
		
		["陕西",[
					["西安","101110101"],
					["咸阳","101110200"],
					["延安","101110300"],
					["榆林","101110401"],
					["渭南","101110501"],
					["商洛","101110601"],
					["安康","101110701"],
					["汉中","101110801"],
					["宝鸡","101110901"],
					["铜川","101111001"]
				]
		],
		
		["甘肃",[
					["兰州","101160101"],
					["定西","101160201"],
					["平凉","101160301"],
					["庆阳","101160401"],
					["武威","101160501"],
					["金昌","101160601"],
					["张掖","101160701"],
					["酒泉","101160801"],
					["天水","101160901"],
					["武都","101161001"],
					["临夏","101161101"],
					["合作","101161201"],
					["白银","101161301"]
				]
		],
		
		["宁夏",[
					["银川","101170101"],
					["石嘴山","101170201"],
					["吴忠","101170301"],
					["固原","101170401"],
					["中卫","101170501"]
				]
		],
		
		["青海",[
					["西宁","101150101"],
					["海东","101150201"],
					["黄南","101150301"],
					["海南","101150401"],
					["果洛","101150501"],
					["玉树","101150601"],
					["海西","101150701"],
					["海北","101150801"]
				]
		],
		
		["新疆",[
					["乌鲁木齐","101130101"],
					["克拉玛依","101130201"],
					["石河子","101130301"],
					["昌吉","101130401"],
					["吐鲁番","101130501"],
					["库尔勒","101130601"],
					["阿拉尔","101130701"],
					["阿克苏","101130801"],
					["喀什","101130901"],
					["伊宁","101131001"],
					["塔城","101131101"],
					["哈密","101131201"],
					["和田","101131301"],
					["阿勒泰","101131401"],
					["阿图什","101131501"]
				]
		],
		
		["重庆",[["重庆","101040100"]]],
		
		["四川",[
					["成都","101270101"],
					["攀枝花","101270201"],
					["自贡","101270301"],
					["绵阳","101270401"],
					["南充","101270501"],
					["达州","101270601"],
					["遂宁","101270701"],
					["广安","101270801"],
					["巴中","101270901"],
					["泸州","101271001"],
					["宜宾","101271101"],
					["内江","101271201"],
					["资阳","101271301"],
					["乐山","101271401"],
					["眉山","101271501"],
					["凉山","101271601"],
					["雅安","101271701"],
					["甘孜","101271801"],
					["阿坝","101271901"],
					["德阳","101272001"],
					["广元","101272101"]
				]
		],
		
		["贵州",[
					["贵阳","101260101"],
					["遵义","101260201"],
					["安顺","101260301"],
					["都匀","101260401"],
					["凯里","101260501"],
					["铜仁","101260601"],
					["毕节","101260701"],
					["六盘水","101260801"],
					["黔西","101260901"]
				]
		],
		
		["云南",[
					["昆明","101290101"],
					["大理","101290201"],
					["红河","101290301"],
					["曲靖","101290401"],
					["保山","101290501"],
					["文山","101290601"],
					["玉溪","101290701"],
					["楚雄","101290801"],
					["思茅","101290901"],
					["昭通","101291001"],
					["临沧","101291101"],
					["怒江","101291201"],
					["中甸","101291301"],
					["丽江","101291401"],
					["德宏","101291501"],
					["景洪","101291601"]
				]
		],
		
		["西藏",[
					["拉萨","101140101"],
					["日喀则","101140201"],
					["山南","101140301"],
					["林芝","101140401"],
					["昌都","101140501"],
					["那曲","101140601"],
					["阿里","101140701"]
				]
		],
		
		["香港",[["香港","101320101"]]],
		
		["澳门",[["澳门","101330101"]]],
		
		["台湾",[
					["台北县","101340101"],
					["高雄","101340201"],
					["台南","101340301"],
					["台中","101340401"],
					["桃园","101340501"],
					["新竹县","101340601"],
					["宜兰","101340701"],
					["马公","101340801"],
					["嘉义","101340901"],
					["花莲","101341001"],
					["台东","101341101"],
					["彭佳屿","101341201"]
				]
		]

];
function SetLocation() {
	var location = $("#location");
	for(i=0;i<CityArray.length;i++){
		for(j=0;j<CityArray[i][1].length;j++){
			if(CityArray[i][1][j] && CityArray[i][1][j][1] == __weather.cityid) {
				var province = CityArray[i][0];
			}
		}
	}
	location.text(province+' '+__weather.city);
}
SetLocation();
function SetProvince()
{
	var province = document.getElementById("province");
	province.options.length = 1;
	var province_list_length=CityArray.length;
	for(i=1;i<province_list_length;i++)
	{
		province.options[i] = new Option();
		province.options[i].text =CityArray[i][0];
		province.options[i].value = i;
	}
	
}
SetProvince();
function ShowCity(c) {
	if(c=="")
	{
		return;	
	}
	var city=document.getElementById("city");
	city.options.length = 1;	
	var city_list_length=CityArray[c][1].length;
	for(i=0;i<city_list_length;i++) {		
		city.options[i+1] = new Option();
		city.options[i+1].text =CityArray[c][1][i][0];
		city.options[i+1].value=CityArray[c][1][i][1];
	}
}
